@extends('home.public.master')
@section('content')

      <div class="">
          <img  src="{{asset('shop/image/theme/pay.png')}}" alt="">
          <div class="jiar_gouw_c_beij" style="position: absolute;top: 430px;left: 640px;text-align: center">
              <h2 class="msg">订单提交成功！请在30分钟内完成付款</h2>
              <div style="margin-top: 14px;">
                  <h4 class="msg">打开微信,⬇️⬇️⬇️扫描付款️</h4>
{{--                  <img src="{{asset('images/qr.jpg')}}" alt="">--}}
                  <img alt="模式二扫码支付" src="/weixinPay/example/qrcode.php?data=<?php echo urlencode($url2);?>"
                       style="width:150px;height:150px;"/>
              </div>
          </div>
      </div>
    @endsection
@push('js')
    <script>
        setInterval(function () {

            var id={!! $orderId !!}
            $.ajax({
                'url':'/order/order/checkStatus/'+id,
                dataType:'json',
                methods:'get',
                success:function (res) {
                    if (res.valid){
                        //付款成功,跳去一个付款成功的页面
                        location.href='/order/order/paySuccess';
                    }
                }
            })
            },100);


    </script>
    @endpush
